local wu__luyi = fk.CreateSkill {
  name = "wu__luyi",
}

Fk:loadTranslationTable{
  ["wu__luyi"] = "路易", 
  [":wu__luyi"] = "每轮开始时，你可以失去1点体力并获得3点护甲,然后你于本轮结束时失去所有护甲。",
  ["#wu__luyi"] = "路易：你可以失去1点体力并获得3点护甲，然后于本轮结束时失去所有护甲",
}

wu__luyi:addEffect(fk.RoundStart, {
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(wu__luyi.name)
  end,
  on_use = function(self, event, target, player, data)
    local skillName = wu__luyi.name
    local room = player.room
    
    room:loseHp(player, 1, skillName)
    if player.dead then return end
    room:changeShield(player, 3)
  end,
})

wu__luyi:addEffect(fk.RoundEnd, {
  can_trigger = function(self, event, target, player, data)
    return player:usedSkillTimes(wu__luyi.name, Player.HistoryRound) ~= 0
  end,

  on_cost = Util.TrueFunc,

  on_use = function(self, event, target, player, data)
    local room = player.room
    room:changeShield(player, -player.shield)
  end,
})

return wu__luyi